/**
 * index:
   @author:liuyanhui
   date:2014年12月23日上午10:09:55
 */
package com.neusoft.cmsprojects.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.neusoft.cmsprojects.dao.GuestBookDao;
import com.neusoft.cmsprojects.model.TbGuestbook;

/**
 * @author Administrator
 *
 */
@Component("GuestBookService")
@Transactional
public class GuestBookServiceImpl implements GuestBookService{
	@Resource(name="GuestBookDao")
	private GuestBookDao guestbookdao;
	
	public GuestBookDao getGuestbookdao() {
		return guestbookdao;
	}

	public void setGuestbookdao(GuestBookDao guestbookdao) {
		this.guestbookdao = guestbookdao;
	}

	public void add(TbGuestbook guestbook) {
		/**
		 * index:
		   @author:liuyanhui
		   date:2014年12月23日上午10:10:09
		 */
	}

	/* (non-Javadoc)
	 * @see com.neusoft.cmsprojects.service.GuestBookService#delete(com.neusoft.cmsprojects.model.TbGuestbook)
	 */
	@Override
	public void delete(TbGuestbook guestbook) {
		/**
		 * index:
		   @author:liuyanhui
		   date:2014年12月23日上午10:10:09
		 */
	}

	/* (non-Javadoc)
	 * @see com.neusoft.cmsprojects.service.GuestBookService#queryBook()
	 */
	@Override
	public List<TbGuestbook> queryBook() {
		String hql="from TbGuestbook t";
		return this.guestbookdao.queryBook(hql);
	}

	/**
	 * index:
	 @author:liuyanhui
	 date:2014年12月23日上午10:09:55
	 */
	
}
